package com.zxjbyte.yiyi.module.system.domain.request.dict;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author zhangxingjia
 * @Date 2024/1/24 17:44
 * @Version: 1.0
 */
@Data
@Schema(description = "字典数据新增请求结构体")
public class DictDataAddRequest {

    // 字典类型
    @Schema(description = "字典类型")
    @NotBlank(message = "字典类型不可为空")
    private String dictType;

    // 排序
    @Schema(description = "排序")
    private Integer sort;

    // 字典标签
    @Schema(description = "字典标签")
    @NotBlank(message = "字典标签不可为空")
    private String dictLabel;

    // 字段值
    @Schema(description = "字段值")
    @NotBlank(message = "字段值不可为空")
    private String dictValue;

    // css样式属性
    @Schema(description = "css样式属性")
    private String cssClass;

    // 显示样式
    @Schema(description = "显示样式")
    private String showStyle;


    @Schema(description = "状态：0-启用，1-禁用")
    @NotNull(message = "字典状态不可为空")
    private Integer status;

    // 备注
    @Schema(description = "备注")
    private String remark;
}
